home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 10023 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.4 KB

  1. Path: keats.ugrad.cs.ubc.ca!not-for-mail
  2. From: c2a192@ugrad.cs.ubc.ca (Kazimir Kylheku)
  3. Newsgroups: comp.lang.c++,comp.lang.c,comp.arch,comp.arch.embedded
  4. Subject: Re: C++ -> C compiler
  5. Date: 5 Mar 1996 09:31:30 -0800
  6. Organization: Computer Science, University of B.C., Vancouver, B.C., Canada
  7. Message-ID: <4hhtpiINN4h9@keats.ugrad.cs.ubc.ca>
  8. References: <313C8FE9.1EE1@iastate.edu>
  9. NNTP-Posting-Host: keats.ugrad.cs.ubc.ca
  10.  
  11. In article <313C8FE9.1EE1@iastate.edu>, Steve Lee  <sjlee@iastate.edu> wrote:
  12. >Hi,
  13. >
  14. >I've heard about a C++ -> C compiler (Cfront?).  Does anyone have any 
  15. >information on this?  I would like to be able to code in C++, compile it 
  16. >with one of these supposed compilers to C, and then use one of the 
  17. >variety of C compilers specifically for the 68HC11 microcontroller.
  18. >
  19. >Thanks in advance.
  20.  
  21. This has been done. Some 'CC' compilers work by translating C++ to C.
  22.  
  23. hp-ux$ man CC
  24.  
  25.  CC(1)                                       CC(1)
  26.  
  27.  
  28.  
  29.  
  30.  NAME
  31.       CC - C++ translator/compiler
  32.  
  33.  SYNOPSIS
  34.       CC [ options ] files
  35.  
  36.  DESCRIPTION
  37.       CC (capital CC) is the HP-UX C++ translator/compiler.  In translator
  38.       mode CC translates C++ source code to C source code.  In compiler mode
  39.       CC compiles C++ source code directly to object code.
  40.  
  41.       The command uses cpp(1) for preprocessing, cfront for syntax and type
  42.       checking, as well as for code generation in compiler mode, and cc(1)
  43.       for code generation in translator mode.
  44. -- 
  45.  
  46.